<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">











<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Maven FileSync Plugin - </title>
    <style type="text/css" media="all">
      @import url("../css/maven-base.css");
      @import url("../css/maven-theme.css");
      @import url("../css/site.css");
    </style>
    <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
          </head>
  <body class="composite">
    <div id="banner">
                    <span id="bannerLeft">
    
            Maven FileSync Plugin
    
            </span>
                    <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="breadcrumbs">
          
  

  
    
  
  
    
            <div class="xleft">
        Last Published: 2010-10-26
                      </div>
            <div class="xright">      
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="leftColumn">
      <div id="navcolumn">
           
  

  
    
  
  
    
                   <h5>Overview</h5>
            <ul>
              
    <li class="none">
                    <a href="../index.html">Introduction</a>
          </li>
              
    <li class="none">
                    <a href="../plugin-info.html">Goals</a>
          </li>
              
    <li class="none">
                    <a href="../usage.html">Usage</a>
          </li>
              
    <li class="none">
                    <a href="../faq.html">FAQ</a>
          </li>
          </ul>
              <h5>Examples</h5>
            <ul>
              
    <li class="none">
                    <a href="../examples/example-one.html">Example with fully defined mapping</a>
          </li>
              
    <li class="none">
                    <a href="../examples/example-two.html">Minimal configuration</a>
          </li>
              
    <li class="none">
              <strong>Command line invocation</strong>
        </li>
          </ul>
                                           <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
            <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
          </a>
                       
  

  
    
  
  
    
        </div>
    </div>
    <div id="bodyColumn">
      <div id="contentBox">
        <div class="section"><h2>Invoking plugin directly from the command line.</h2>
<div class="source"><pre>  &lt;plugin&gt;
    &lt;groupId&gt;com.google.code.filesync&lt;/groupId&gt;
    &lt;artifactId&gt;maven-filesync-plugin&lt;/artifactId&gt;
    &lt;version&gt;1.0&lt;/version&gt;
    &lt;configuration&gt;
      &lt;mappings&gt;
        &lt;mapping&gt;
          &lt;sourceFolder&gt;target/classes&lt;/sourceFolder&gt;
          &lt;destinationFolder&gt;\:workspaceRelativeDirectory&lt;/destinationFolder&gt;
          &lt;inclPatternList&gt;
            &lt;include&gt;**/*.class&lt;/include&gt;
          &lt;/inclPatternList&gt;
          &lt;exclPatternList&gt; 
            &lt;exclude&gt;**/*Test*&lt;/exclude&gt;
            &lt;exclude&gt;**/*.html&lt;/exclude&gt;
          &lt;/exclPatternList&gt;
          &lt;variablesFile&gt;src/main/resources/my.properties&lt;/variablesFile&gt;
        &lt;/mapping&gt;
      &lt;/mappings&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;</pre>
</div>
<p>Now run <b>mvn filesync:generate</b>. </p>
<p>If no configuration is defined, a default settings file will be generated i.e. no meaningful mapping will be configured. The same result will be achieved if your configuration is defined within the executions sections as stated in the <a href="http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_executions_Tag" class="externalLink">maven guide to plugin configuration</a>.</p>
</div>

      </div>
    </div>
    <div class="clear">
      <hr/>
    </div>
    <div id="footer">
      <div class="xright">&#169;  
          2010
    
          
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
  </body>
</html>
